﻿using System;
using FatFreeFitness._models;
using FatFreeFitness.membership;

namespace FatFreeFitness._secured.members
{
    public partial class ChooseRoutine : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            hidMembershipKey.Value = MembershipHelper.GetMemberID().ToString();
        }

        protected void FormView1_ItemUpdated(object sender, System.Web.UI.WebControls.FormViewUpdatedEventArgs e)
        {
            Response.Redirect("~/_secured/members/");
        }

        protected void FormView1_ItemCommand(object sender, System.Web.UI.WebControls.FormViewCommandEventArgs e)
        {
            if (e.CommandName=="Cancel")
            {
                Response.Redirect("~/_secured/members/");
            }
        }
    }
}